<!DOCTYPE html>
{include file='head_hooks.html'}

<head>
  <title>{$project->name} settings | Protoweb</title>

  {include file='head_scripts.html'}
</head>

<body>
  {include file='body_hooks.html'}

  {include file='navbar.html'}

  <div class="container">

    {include file='messages.html'}
    
    <div class="row">

      <section class="span8">

        <form action="" method="post" enctype="multipart/form-data">

          <h2>Members</h2>
          <input type="text" id="developer_autocomplete" placeholder="Write a username for add it" class="input-xlarge" />
          <div id="developers" class="well">
            {foreach from=$project->user->get() item="member"}
              <div id="member_{$member->id}" obj_id="{$member->id}" class="developer">
                <input class="input" type="hidden" name="developers[]" value="{$member->id}" />
                <span class="remove-member"><a onclick="return remove({$member->id});" href="#" title="Remove Member">X</a> </span>
                <label>{$member->fullname()|escape}</label>
              </div>
            {/foreach}
          </div>
          <!-- end developers -->

          <div class="control-group">
            <button type="submit" class="btn btn-primary">Save</button>
          </div>
          
        </form>
        
      </section>
      <!-- span8 -->

      <section class="span4">
        <h2>Project actions</h2>
        <p><a href='projects/dashboard/{$project->id}/'>Dashboard</a></p>
        <p><a href='projects/work/{$project->id}/'>Work!</a></p>
        <p><a href='entities/create/{$project->id}/'>Create entity</a></p>
        <hr />
        <p><a href='{$project->base_url()}' target="_BLANK">Go to project index</a></p>
        <hr />
        <p><a href='projects/edit/{$project->id}/'>Basic settings</a></p>
        <p><a href='projects/members/{$project->id}/'>Edit members</a></p>
      </section>
      <!-- span4 -->

    </div>
    <!-- row -->

    {include file='footer.html'}

  </div> <!-- /container -->

  {include file='footer_scripts.html'}
  
  <link href="assets/js/libs/autocomplete/jquery.autocomplete.css" rel="stylesheet" type="text/css" />
  <script src="assets/js/libs/autocomplete/jquery.autocomplete.js"></script>

  {include file="project_members.js.html"}
</body>

</html>